package cn.ecsd.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * BizCheckResult entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="biz_check_result"
    ,catalog="jboa"
)

public class BizCheckResult  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private BizClaimVoucher bizClaimVoucher;
     private Timestamp checkTime;
     private SysEmployee checkEmployee;
     private String result;
     private String comm;


    // Constructors

    /** default constructor */
    public BizCheckResult() {
    }

    
    /** full constructor */
    public BizCheckResult(BizClaimVoucher bizClaimVoucher, Timestamp checkTime, SysEmployee checkEmployee, String result, String comm) {
        this.bizClaimVoucher = bizClaimVoucher;
        this.checkTime = checkTime;
        this.checkEmployee = checkEmployee;
        this.result = result;
        this.comm = comm;
    }

   
    // Property accessors
    @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="ID", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="CLAIM_ID", nullable=false)

    public BizClaimVoucher getBizClaimVoucher() {
        return this.bizClaimVoucher;
    }
    
    public void setBizClaimVoucher(BizClaimVoucher bizClaimVoucher) {
        this.bizClaimVoucher = bizClaimVoucher;
    }
    
    @Column(name="CHECK_TIME", nullable=false, length=0)

    public Timestamp getCheckTime() {
        return this.checkTime;
    }
    
    public void setCheckTime(Timestamp checkTime) {
        this.checkTime = checkTime;
    }
    
    @ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CHECKER_SN", nullable = false)
    
    public SysEmployee getCheckEmployee() {
  		return checkEmployee;
  	}


  	public void setCheckEmployee(SysEmployee checkEmployee) {
  		this.checkEmployee = checkEmployee;
  	}
    
    
    @Column(name="RESULT", nullable=false, length=50)

    public String getResult() {
        return this.result;
    }
    
  


	public void setResult(String result) {
        this.result = result;
    }
    
    @Column(name="COMM", nullable=false, length=500)

    public String getComm() {
        return this.comm;
    }
    
    public void setComm(String comm) {
        this.comm = comm;
    }
   








}